export function useFastNaive() {
  const dialog = useDialog()
  const $message = useMessage()
  const $dialog = (message: string): Promise<void> => {
    return new Promise((resolve, reject) => {
      dialog.create({
        title: '提示',
        content: message,
        positiveText: '确定',
        negativeText: '取消',
        onPositiveClick: () => {
          resolve()
        },
        onClose: () => {
          reject(new Error('取消'))
        }
      })
    })
  }
  return { $dialog, $message }
}
